<div id="content">
    <div class="left">

        <h1>Update Activity</h1>
        <hr/><br/>
        <h2>Track and Update your activity here:</h2>
        <br/>

        <?php
        echo form_open('schedule/do_update_activity', '', array('schedule_id' => $updated_activity[0]->schedule_id, 'student_activity_id' => $updated_activity[0]->student_activity_id, 'country_id' => $updated_activity[0]->country_id, 'location' => $updated_activity[0]->gcalendar_event_id));

        echo '<fieldset>';
        echo '<legend>Activity Detail:</legend>';
        echo br(1);
        echo form_label('Activity Name:', 'name', array('class' => 'left_col1'));
        echo form_input(array('name' => 'activity_title', 'id' => 'name', 'value' => $updated_activity[0]->activity_title, 'class' => 'left_col2'));
        echo nbs(3);
        echo '<span id="name_msg"></span>';
        echo br(1);
        echo '<div id="clear"></div>';

        echo form_label('Activity Actual Start Date:', 'date1', array('class' => 'left_col1'));
        echo form_input(array('name' => 'date1', 'id' => 'actual_date1', 'class' => 'date-pick', 'value' => $updated_activity[0]->actual_start_date));
        echo nbs(3);
        echo '<span id="actual_date1_msg"></span>';
        echo br(1);
        echo '<div id="clear"></div>';

        echo form_label('Activity Actual End Date:', 'date2', array('class' => 'left_col1'));
        echo form_input(array('name' => 'date2', 'id' => 'actual_date2', 'class' => 'date-pick', 'value' => $updated_activity[0]->actual_end_date));
        echo nbs(3);
        echo '<span id="actual_date2_msg"></span>';
        echo br(1);
        echo '<div id="clear"></div>';

        echo form_label('Activity Description:', 'description', array('class' => 'left_col1'));
        echo form_textarea(array('name' => 'description', 'id' => 'description', 'value' => $updated_activity[0]->description, 'rows' => '5', 'cols' => '40', 'class' => 'left_col2'));
        echo nbs(3);
        echo '<span id="description_msg"></span>';
        echo br(2);
        echo '<div id="clear"></div>';
        echo br(1);

        echo '</fieldset>';
        echo br(3);
        echo form_submit(array('name' => 'submit', 'id' => 'activity'), 'Save Update');

        echo form_close();
        ?>
    </div>
</div>

